using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class PickingPosConfiguration : EntityTypeConfiguration<PickingPos>
    {
        public PickingPosConfiguration()
        {
            Property(g => g.PickingPosID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            Property(g => g.ClientID).IsOptional();  
            Property(g => g.Amount).IsOptional();
            Property(g => g.AmountPicked).IsOptional();
            Property(g => g.PickFromLocationName).IsOptional();
            Property(g => g.PickOromUnitLoadLabel).IsOptional();
            Property(g => g.PickingOrderNumber).IsOptional();
            Property(g => g.PickingType).IsOptional();
            Property(g => g.State).IsOptional();
            Property(g => g.StrategyID).IsRequired();
            Property(g => g.PickingOrderID).IsRequired();
            Property(g => g.PickFromStockUnitID).IsRequired();
            Property(g => g.CustomerOrderPositionID).IsRequired();
            Property(g => g.LotPickedID).IsRequired();
            Property(g => g.ItemDataID).IsOptional();
            Property(g => g.PickToUnitLoadID).IsRequired();
        }
    }
}
